//
//  DataBaseManager.h
//  项目A --半糖
//
//  Created by romana on 16/6/2.
//  Copyright © 2016年 romana. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "FMDB.h"

@interface DataBaseManager : NSObject

@property (nonatomic, strong) FMDatabase *mydb;


+(DataBaseManager *)shareIndtance;

//打开数据库
-(void)openHotDB;
//创建表
-(void)createHotTable;
//删除表
-(void)dropHotTable;
//删除数据
-(void)deleteHotByTitle:(NSString *)title;


// 查
-(BOOL)selectHotByTitle:(NSString *)title;

//查询所有
-(NSMutableArray *)selectAllHot;


//插
-(void)insertHotTitle:(NSString *)title imgView:(UIImage *)imgView WebView:(NSString *)web type:(NSString *)type;


@end
